package com.stm.bi.service;

import com.stm.bi.dto.query.ProductStructQry;
import com.stm.bi.model.Chart;
import com.stm.bi.model.DatatablePage;
import com.stm.bi.report.ProductStructureQueryExe;
import com.stm.framework.dto.Response;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author chenyingjun
 * @Desc
 * @Date 2024/3/27 10:12
 */
@Service
public class ProductStructService {

    @Resource
    private ProductStructureQueryExe productStructureQueryExe;


    public Response<Chart<List<List<Object>>>> queryChart(ProductStructQry productStructQry){
        return productStructureQueryExe.exeChartQuery(productStructQry);
    }


    public Response<DatatablePage> queryTable(ProductStructQry productStructQry){
        return productStructureQueryExe.exeTableQuery(productStructQry);
    }


    public Response export(HttpServletResponse response, ProductStructQry reportQry) {
        return productStructureQueryExe.export(response, reportQry);
    }

}
